package com.googlecode.tinyjava.symboltable;

public class Variable extends DataItem {
	
	boolean isFinal;
	String type;

	public Variable(String name, String type, boolean isFinal) {
		super(name);
		this.type = type;
		this.isFinal = isFinal;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return (isFinal ? "final " : "") + type + " " + super.toString();
	}

}
